package scau.mis4.chanyulin.entity.user;

import scau.mis4.chanyulin.base.common.Unique;
import java.util.Date;

/**
 * Created by AutoSSM.
 */
public class FsUser extends Unique {

    private String username;

    private String password;

    private String salt;

    private Integer gender;

    private String nickname;

    private String email;

    private String qq;

    private String avatar;

    private String roleId;

    private Integer usable;

    private String school;

    private String academy;

    private String major;

    private String ybId;

    private Integer ybFlag;

    private Date createTime;

    public FsUser() {
    }

    public FsUser(String username, String password, String salt, Integer gender, String nickname, String email, String qq, String avatar, String roleId, Integer usable, String school, String academy, String major, String ybId, Integer ybFlag, Date createTime) {
        this.username = username;
        this.password = password;
        this.salt = salt;
        this.gender = gender;
        this.nickname = nickname;
        this.email = email;
        this.qq = qq;
        this.avatar = avatar;
        this.roleId = roleId;
        this.usable = usable;
        this.school = school;
        this.academy = academy;
        this.major = major;
        this.ybId = ybId;
        this.ybFlag = ybFlag;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "FsUser{" +
                "username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", gender=" + gender +
                ", nickname='" + nickname + '\'' +
                ", email='" + email + '\'' +
                ", qq='" + qq + '\'' +
                ", avatar='" + avatar + '\'' +
                ", roleId='" + roleId + '\'' +
                ", usable=" + usable +
                ", school='" + school + '\'' +
                ", academy='" + academy + '\'' +
                ", major='" + major + '\'' +
                ", ybId='" + ybId + '\'' +
                ", ybFlag=" + ybFlag +
                ", createTime=" + createTime +
                '}';
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public Integer getUsable() {
        return usable;
    }

    public void setUsable(Integer usable) {
        this.usable = usable;
    }

    public String getSchool() {
        return school;
    }

    public void setSchool(String school) {
        this.school = school;
    }

    public String getAcademy() {
        return academy;
    }

    public void setAcademy(String academy) {
        this.academy = academy;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getYbId() {
        return ybId;
    }

    public void setYbId(String ybId) {
        this.ybId = ybId;
    }

    public Integer getYbFlag() {
        return ybFlag;
    }

    public void setYbFlag(Integer ybFlag) {
        this.ybFlag = ybFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    //shiro需要
    public String getCredentialsSalt() {
        return username+salt;
    }


}
